package com.itheima;
import java.util.Scanner;
public class Test4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个整数:");
        int a = sc.nextInt();
        System.out.println("请输入第二个整数:");
        int b = sc.nextInt();
        System.out.println("请输入第三个整数:");
        int c = sc.nextInt();
        method(a,b,c);
    }
    public static void method(int a, int b, int c) {
        int max = 0;
        int min = 0;
        if(a > b && a > c ){
            max = a;
        }else if(b > a && b > c){
            max = b;
        }else{
            max = c;
        }
        if(a < b && a < c ){
            min = a;
        }else if(b < a && b < c){
            min = b;
        }else{
            min = c;
        }
        int mid = a + b + c - max - min;
        System.out.println("从大到小的顺序是：" + max + " "+ mid + " " + min);
    }
}